package switchviz.network.snmp;

public class SnmpStatus implements ISnmpStatus
{
	public enum Status
	{
		Data,
		Send,
		Received,
		TimedOut,
		None
	}
	
	protected int _dataCount = 0;
	protected int _sendPduCount = 0;
	protected int _receivedPduCount = 0;
	protected int _timedOutPduCount = 0;
	
	public int getDataCount()
	{
		return _dataCount;
	}
	public int getReceivedPduCount()
	{
		return _receivedPduCount;
	}

	public int getSendPduCount()
	{
		return _sendPduCount;
	}

	public int getTimedOutPduCount()
	{
		return _timedOutPduCount;
	}

	public void updateStatus(Status status)
	{
		switch(status)
		{
		case Data:
			_dataCount++;
			break;
		case Received:
			_receivedPduCount++;
			break;
		case Send:
			_sendPduCount++;
			break;
		case TimedOut:
			_timedOutPduCount++;
			break;
		}
	}
}
